<?php
require_once("include/auth.php");


$currentUser = current_user();
//if ($currentUser){
$course_title = $_GET['course_title'];
$terms = getTerms($course_title);

header('Cache-Control: no-cache, must-revalidate');
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Content-type: application/json');

echo json_encode($terms);
//}